package com.xiaoniu.forum.web.controller.app;

import com.xiaoniu.forum.common.utils.R;
import com.xiaoniu.forum.service.TabbarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/app/tabbar")
public class AppTabbarController {
    @Autowired
    private TabbarService tabbarService;

    @RequestMapping("/list")
    public R list(){
        return R.ok().put("data",tabbarService.list());
    }

}
